
"use strict";

angular.module('app.user').controller('AddUserCtrl', function ($scope, userHttpS) {

   // 邮箱是主键 不能重复
   // $scope.loseFocus = function(){
   // 	console.log($scope.infor.email);
   // 	 userHttpS.postAll('queryEmail',$scope.infor.email).then(function (response) {
   //           if(response > 0){//邮箱名重复
   //              alert("邮箱名已存在，请重新输入");
   //           }
   //   })
   // }
   //获取所有的角色
   userHttpS.getAll('getallrole').then(function(response){
     $scope.roles = response;
   });
   userHttpS.getAll('getalldeparts').then(function(response){
     $scope.departs = response;
   });

    
   
});